using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Contracts.Models
{
    /// <summary>
    /// 省市区Dto
    /// </summary>
    public class SysPlacesDto
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public ushort Id { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public ushort ParentId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Cname { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public sbyte Ctype { get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        public List<SysPlacesDto> Children { get; set; }
    }

    /// <summary>
    /// 获取省市区列表输入
    /// </summary>
    public class SysPlacesListInput
    {
        /// <summary>
        /// 父级ID，默认为0（获取所有省份）
        /// </summary>
        public ushort ParentId { get; set; } = 0;

        /// <summary>
        /// 是否获取所有层级
        /// </summary>
        public bool GetAllLevels { get; set; } = false;
    }
}